<?php
namespace BP\En;
class EnDtl {
	protected $_Ens;	// Entities
	protected $_refKey;	// String
	protected $_Desc;	// String
	protected $_groupName;	// String
	private function __init() { // default class members
		$this->_Ens = NULL;
		$this->_refKey = NULL;
		$this->_Desc = NULL;
		$this->_groupName = NULL;
	}
	public static function constructor__ () 
	{
		$me = new self();
		$me->__init();
		return $me;
	}
	public static function constructor__String ($className) // [String className]
	{
		$me = new self();
		$me->__init();
		$me->setEns(ClassFactory::GetEns($className));
		return $me;
	}
	public function getEnsName () 
	{
		return $this->getEns();
	}
	public function getEns () 
	{
		return $this->_Ens;
	}
	public function setEns ($value) // [Entities value]
	{
		$this->_Ens = $value;
	}
	public function getRefKey () 
	{
		return $this->_refKey;
	}
	public function setRefKey ($value) // [String value]
	{
		$this->_refKey = $value;
	}
	public function getDesc () 
	{
		if (($this->_Desc == NULL))
		{
			$this->_Desc = $this->getEns()->getNewEntity()->getEnDesc();
		}
		return $this->_Desc;
	}
	public function setDesc ($value) // [String value]
	{
		$this->_Desc = $value;
	}
	public function getGroupName () 
	{
		return $this->_groupName;
	}
	public function setGroupName ($value) // [String value]
	{
		$this->_groupName = $value;
	}
}
?>
